package com.lvyq.repository;

import com.lvyq.model.bag.MyBag;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.web.bind.annotation.DeleteMapping;

import java.util.List;

public interface MyBagRepository extends MongoRepository<MyBag,String> {

    MyBag findByGoodsNameAndOpenId(String goodsName,String openId);


    List<MyBag> findByOpenId(String openId);

    List<MyBag> findByOpenIdAndType(String openId,Integer type);
}
